package com.woniuxy.finance.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @ClassName Transfer
 * @Description TODO
 * @Author XiaoYiWang
 * @Date 2022/6/8 14:51
 * @Version 1.0
 * @Description: 转账实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class Transfer {
    @ApiModelProperty(value = "转账接受者")
    private String recipient;
    @ApiModelProperty(value = "转账金额")
    private BigDecimal amount;
    @ApiModelProperty(value = "银行卡号")
    private BigInteger bankNumber;
    @ApiModelProperty(value = "转账状态")
    private String status;
    @ApiModelProperty(value = "转账说明")
    private String explain;
    @ApiModelProperty(value = "发起人")
    private String originator;
    @ApiModelProperty(value = "转账时间")
    private Date transferTime;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "创建人id")
    private int createUserId;
    @ApiModelProperty(value = "最后修改时间")
    private Date lastModifiedTime;
    @ApiModelProperty(value = "最后修改人id")
    private int lastUserId;
    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;
    @ApiModelProperty(value = "可用金额")
    public static BigDecimal balance;
    @ApiModelProperty(value = "转账金额")
    public static BigDecimal sumOfAmount;
    @ApiModelProperty(value = "转账笔数")
    public static int timeOfTransfer;
}
